﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using HengTong.Model.Db;
using HengTong.Model;
using HengTong.Model.Db.Hr;
using HengTong.Model.Db.Hr.Bill;


namespace HengTong.ViewModel.Hr.SysHrStaffPoolVms
{
    public partial class SysHrStaffPoolTemplateVm : BaseTemplateVM
    {
        [Display(Name = "用人需求子表")]
        public ExcelPropety StaffNeedEntryExcel = ExcelPropety.CreateProperty<SysHrStaffPool>(x => x.StaffNeedEntryId);
        [Display(Name = "状态")]
        public ExcelPropety HrStatusExcel = ExcelPropety.CreateProperty<SysHrStaffPool>(x => x.HrStatus);

	    protected override void InitVM()
        {
            StaffNeedEntryExcel.DataType = ColumnDataType.ComboBox;
            StaffNeedEntryExcel.ListItems = DC.Set<SysHrStaffNeedRequestBillEntry>().GetSelectListItems(Wtm, y => y.JobRequirement);
        }

    }

    public class SysHrStaffPoolImportVm : BaseImportVM<SysHrStaffPoolTemplateVm, SysHrStaffPool>
    {

    }

}
